package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 客户财务账目表
 * </p>
 *
 * @author LX
 * @since 2018-09-06
 */
@TableName("erp_customer_finiance_accounts")
public class ErpCustomerFinianceAccounts extends Model<ErpCustomerFinianceAccounts> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 账户id
     */
    private Integer pid;
    /**
     * 账号
     */
    @TableField("finv_number")
    private String finvNumber;
    /**
     * 金额
     */
    private Double money;
    /**
     * 时间
     */
    private String dt;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getFinvNumber() {
        return finvNumber;
    }

    public void setFinvNumber(String finvNumber) {
        this.finvNumber = finvNumber;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getDt() {
        return dt;
    }

    public void setDt(String dt) {
        this.dt = dt;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpCustomerFinianceAccounts{" +
        ", id=" + id +
        ", pid=" + pid +
        ", finvNumber=" + finvNumber +
        ", money=" + money +
        ", dt=" + dt +
        "}";
    }
}
